/**
  * @file		serial.h
  * @author		Naresuan University: Advance Computer System, class of 2013
  * @version	V1.0.0
  * @date		18-September-2013
  * @brief		Header of serial module
  */
#ifndef __SERIAL_H
#define __SERIAL_H

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include <stm32f10x_rcc.h>
#include <stm32f10x_gpio.h>
#include <stm32f10x_usart.h>	 
	 
/* Public typedef ------------------------------------------------------------*/
/* Public define -------------------------------------------------------------*/
/* Public macro --------------------------------------------------------------*/
/* Public variables ----------------------------------------------------------*/
/* Public function prototypes ------------------------------------------------*/
void Serial_begin(uint32_t speed);
int Serial_read(void);
uint8_t Serial_write(uint8_t val);
void Serial_flush(void);
int Serial_available(void);	 

#ifdef __cplusplus
}
#endif

#endif /* __SERIAL_H */
